<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>
        <ui:composition template="/template.xhtml">
            <ui:define name="titre_principal">
                <p:panel>
                    <h:outputText value="#{bundle.TitreCommercial}" />
<!--                    <p:effect type="slide" event="load"  />-->
                </p:panel>
            </ui:define>
            <ui:define name="title">
                <ui:insert name="title">Default Title</ui:insert>
            </ui:define>
            <ui:define name="title2">
                <ui:insert name="title">Default Title</ui:insert>
            </ui:define>
            <ui:define name="menu">
                <p:tab title="Achats">
                    <h:form>        
                        <p:commandLink value="Nouvelle commande" ajax="false" action="/data/achat/Create"/><br />
                        <p:commandLink value="Tous les achats"  ajax="false" action="/data/achat/List"/><br />
                    </h:form>
                </p:tab>
                <p:tab title="Ventes">
                    <h:form>
                        <p:commandLink value="Nouvelle offre commerciale" ajax="false" action="/data/offreCommerciale/Create"/><br />
                        <p:commandLink value="Toutes les offres" ajax="false" action="/data/offreCommerciale/List"/><br />
                        <p:separator/>
                        <p:commandLink value="Nouveau groupe d'offre" ajax="false" action="/data/groupeOffre/Create"/><br />
                        <p:commandLink value="Tous les groupes d'offres" ajax="false" action="/data/groupeOffre/List"/><br />
                    </h:form>
                </p:tab>
                <p:tab title="Temporaire...">
                    <h:form>        
                        <p:commandLink value="Item commerciaux" ajax="false" action="/data/itemCommercial/List"/><br />
                        <p:commandLink value="Evènements" ajax="false" action="/data/evenement/List"/><br />
                    </h:form>
                </p:tab>                
            </ui:define>

            <ui:define name="body">
                <ui:insert name="body">corps</ui:insert>
            </ui:define>

        </ui:composition>
    </body>
</html>
